<div class="full_w">
    <div class="h_title"><?php echo Yii::t('AdmincpModule.admincp', 'Add Language'); ?></div>
    <form action="" method="post" id="frm">
        <div class="element">
            <label>Code <span class="red">*</span></label>
            <input type="text" name="language[language_code]" id="language_code" class="text required" value="<?php echo isset($arrItemInfo['language_code'])?$arrItemInfo['language_code']:null; ?>">
        </div>
        <div class="element">
            <label>Name <span class="red">*</span></label>
            <input type="text" name="language[language_name]" id="language_name" class="text required" value="<?php echo isset($arrItemInfo['language_name'])?$arrItemInfo['language_name']:null; ?>">
        </div>
        <div class="element">
            <label>Native Name <span class="red">*</span></label>
            <input type="text" name="language[language_nativename]" id="language_nativename" class="text required" value="<?php echo isset($arrItemInfo['language_nativename'])?$arrItemInfo['language_nativename']:null; ?>">
        </div>
        <div class="element">
            <label>Direction</label>
            <select name="language[language_direction]" id="language_direction">
            	<option id="0">Left to right</option>
                <option id="1">Right to left</option>
            </select>
        </div>
        <div class="element">
            <label>Description <span class="red">*</span></label>
            <textarea name="language[language_description]" id="language_description" class="textarea required"><?php echo isset($arrItemInfo['language_description'])?$arrItemInfo['language_description']:null; ?></textarea>
        </div>
        <div class="entry">
            <input type="hidden" name="id" id="id" value="<?php echo isset($arrItemInfo['language_id'])?$arrItemInfo['language_id']:null; ?>">
            <button type="submit">Submit</button> <button>Cancel</button>
        </div>
    </form>
</div>
<script type="text/javascript">
	$(function(){
		$('#frm').validate();
	});
</script>